﻿using System;
using System.Data.Entity;

namespace GeneralStore
{
    public interface IEntitiesContext
    {
        System.Data.Entity.DbSet<GeneralStore.Brand> Brands { get; set; }
        System.Data.Entity.DbSet<GeneralStore.Cart> Carts { get; set; }
        System.Data.Entity.DbSet<GeneralStore.Category> Categorys { get; set; }
        System.Data.Entity.DbSet<GeneralStore.OrderDetail> OrderDetails { get; set; }
        System.Data.Entity.DbSet<GeneralStore.Order> Orders { get; set; }
        System.Data.Entity.DbSet<GeneralStore.Product> Products { get; set; }
        System.Data.Entity.DbSet<GeneralStore.UserProfile> UserProfiles { get; set; }

        int SaveChanges();
        DbSet<T> Set<T>() where T : class;
    }
}
